package com.cdk8s.tkey.management.mapstruct;


import com.bcw.sso.model.dto.SsoClientDTO;
import com.bcw.sso.model.dto.SsoClientRedisDO;
import com.bcw.sso.model.pojo.SsoClient;
import com.cdk8s.tkey.management.pojo.dto.param.OauthClientCreateRequestParam;
import com.cdk8s.tkey.management.pojo.dto.param.OauthClientUpdateRequestParam;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper(componentModel = "spring")
public interface OauthClientMapstruct {

	SsoClientDTO toDTO(SsoClient source);

	List<SsoClientDTO> toDTOList(List<SsoClient> source);

	SsoClientRedisDO toRedisBO(SsoClient source);

	List<SsoClientRedisDO> toRedisBOList(List<SsoClient> source);

	SsoClient toEntity(OauthClientCreateRequestParam source);

	SsoClient toEntity(OauthClientUpdateRequestParam source);


}
